package com.magina.common.utils;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class StringCharaterUtils {

    /**
     *  转换成debug格式得字符串
     * @param list : [a,b,c,f]
     * @return "a","b","c","f"
     */
    public static String addJsonStr(List<String> list){
        return list.stream().collect(Collectors.joining("\",\"","\"","\"")).trim();
    }

    public static void main(String[] args) {
        List<String> list = Arrays.asList("asd","qwe","asdas");
        System.out.println(addJsonStr(list));
    }
}
